<?php echo $this->fetch('header.html'); ?>
<div class="conter">
  <?php echo $this->fetch('header.common.html'); ?>
  <div class="form_box">
   <form id="setkuan_form" method="post" >
    <dl>
     <dt>旧密码</dt>
     <dd><input type="password" id="password" name="password" placeholder="请输入旧密码" class="text_input"/></dd>
    </dl> 
    <dl>
     <dt>新密码</dt>
     <dd><input type="password" id="new_password" name="new_password" placeholder="请输入新密码（6-16位字母或数字）" class="text_input"/></dd>
    </dl> 
    <dl>
     <dt>确认密码</dt>
     <dd><input type="password" id="confirm_password" name="confirm_password" placeholder="确认新密码，再次输入新密码" class="text_input"/></dd>
    </dl>            
     <p><input type="Submit" class="button_css" value="确认修改"><input type="hidden" name="ret_url" value="<?php echo $this->_var['ret_url']; ?>" /></p>
   </form>
  </div>
<?php echo $this->fetch('footer.html'); ?>
</div>  
<script type="text/javascript">
//表单验证
$(function(){
    $('#setkuan_form').validate({
        errorPlacement: function(error, element){
			element.parent('dd').append(error);
        },
        onkeyup: false,
        rules : {
            password : {required : true,},
            new_password : {required : true, minlength: 6},
            confirm_password : {required : true, equalTo  : '#new_password'}						
        },
        messages : {
            password  : {required : '请输入旧密码',},
            new_password  : {required : '请输入新密码（6-20位字母或数字）', minlength: '密码长度应在6-20个字符之间'},
            confirm_password  : {required : '请再次输入新密码', equalTo: '输入的新密码和确认密码不匹配'}					
        }
    });
});
</script>
</body>
</html>